package com.rub.android.service.api

import com.rub.android.jetpack.model.RepoResponse
import com.rub.android.service.GitHubService
import com.rub.android.utils.RetrofitHelper
import retrofit2.Call
import retrofit2.http.*

interface IGithubService {

    /**
     * 通过关键字与分页去查询数据
     */
    @GET("/search/repositories?sort=stars")
    fun search(
        @Query("per_page") perPage: Int,
        @Query("page") page: Int,
        @Query("q") keyWord: String
    ): Call<RepoResponse>


}